package com.zzy.demo.utils.validate.code;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ValidateCodeBeanConfig {

	@ConditionalOnMissingBean(name="imageCodeGenerator")
	public ImageCodeGenerator imageCodeGenerator() {
		ImageCodeGenerator codegenerator = new ImageCodeGenerator();
		return codegenerator;
	}

}
